<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>

    <a href="p2.html"> go p2</a>

    <!-- Google tag (gtag.js) -->
    <script async src="https://www.googletagmanager.com/gtag/js?id=G-GS4PRLBPEQ"></script>
    <script>
        window.dataLayer = window.dataLayer || [];
        function gtag(){dataLayer.push(arguments);}
        gtag('js', new Date());

        gtag('config', 'G-GS4PRLBPEQ');
    </script>
    <script>
        function uga() {

        }
    </script>
    </script>
</head>
<body>

    <button onclick="uga()">上报ga</button>

</body>
</html>